package org.jazz.web.controller;


import java.util.List;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.jazz.basic.ModelAndView;
import org.jazz.board.BoardVO;
import org.jazz.board.dao.BoardDAO;

public class BBSController extends MultiController {
	
	public ModelAndView list(HttpServletRequest request, HttpServletResponse response) throws Exception{
		List<BoardVO> list = BoardDAO.instance.listView(1);
		ModelAndView result = new ModelAndView("/WEB-INF/bbs/list.jsp");
		for(BoardVO vo : list)
			result.addDataMap("bbsList", vo);
		return result;
	}
}
